package com.zimmur.app.mocolink.dao;

import com.zimmur.app.mocolink.domain.model.Permission;
import com.zimmur.app.mocolink.domain.model.PermissionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PermissionMapper {
    int countByExample(PermissionExample example);

    int deleteByExample(PermissionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    List<Permission> selectByExample(PermissionExample example);

    Permission selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Permission record, @Param("example") PermissionExample example);

    int updateByExample(@Param("record") Permission record, @Param("example") PermissionExample example);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);
    /**
     * 根据角色Id查询
     *@Description
     *@param roleIds
     *@return 
     *@author zcx
     *@Time 2017年11月1日 下午8:12:19
     */
    List<Permission> selectByRoleId(@Param("list")List<Integer> roleIds);
}